package tds.model18;
/**
 * @Company 杭州先锋电子技术股份有限公司
 * @ClassName Adapter
 * @Description 适配器（例子中的usb和ps/2的转接器）
 * @author tds
 * @Date 2020/2/3 22:49
 * @version 1.0.0
 */
public class Adapter implements Target {

    private Adaptee adaptee;

    public  Adapter(Adaptee adaptee){
        this.adaptee = adaptee;
    }

    @Override
    public void handleRequest() {
        System.out.println("将usb转ps/2接口");
        adaptee.request();
    }
}
